import { Modal } from 'antd';

export default class BaseModal{
  static show(type, config){

    return Modal[type](
      {
        okText: '确认',
        cancelText: '取消',
        ...config
      }
    );
  }
}
